<?php
/**
 * 商家表验证器
 */

namespace app\common\validate;

class UserMerchantValidate extends Validate
{
    protected $rule = [
            'name|名称' => 'require',
    'ww|旺旺' => 'require',
    'store_name|店铺名称' => 'require',
    'store_url|店铺地址' => 'require',
    'user_money|余额' => 'require',

    ];

    protected $message = [
            'name.require' => '名称不能为空',
    'ww.require' => '旺旺不能为空',
    'store_name.require' => '店铺名称不能为空',
    'store_url.require' => '店铺地址不能为空',
    'user_money.require' => '余额不能为空',

    ];

    protected $scene = [
        'add'  => ['name','ww','store_name','store_url','user_money',],
'edit' => ['name','ww','store_name','store_url','user_money',],

    ];

    

}
